# Template file for 'StormLib'
pkgname=StormLib
version=9.24
revision=1
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON -DWITH_LIBTOMCRYPT=ON"
hostmakedepends="pkg-config"
makedepends="bzip2-devel zlib-devel libtomcrypt-devel libtommath-devel"
short_desc="C/C++ API to read and write MPQ files with support for merged archives"
maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
license="MIT"
homepage="https://github.com/ladislav-zezula/StormLib"
distfiles="https://github.com/ladislav-zezula/StormLib/archive/v${version}.tar.gz"
checksum=33e43788f53a9f36ff107a501caaa744fd239f38bb5c6d6af2c845b87c8a2ee1

post_install() {
	vlicense LICENSE
}

StormLib-devel_package() {
	short_desc+=" - development files"
	depends="StormLib>=${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.so"
	}
}
